from django_filters import filters
from django_filters.rest_framework import FilterSet

from apps.system.models import User


class UsersFilter(FilterSet):
    """
    用户号过滤
    """

    # permission = filters.AllValuesFilter(field_name='permissions',lookup_expr='contains')
    class Meta:
        model = User
        fields = ['id','company','username', 'name','is_active','roles','department']



__all__ = [

]
